home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / utilfile / deldir / deldir.doc < prev   
Encoding:
Text File  |  1986-03-20  |  5.5 KB  |  134 lines

  1.  
  2.  
  3.  
  4.                     *************************************
  5.                     *              NOTICE               *
  6.                     *                                   *
  7.                     *  This program is Public Domain,   *
  8.                     *  and is not for sale !!  If you   *
  9.                     *  use this program and find it of  *
  10.                     *  value, a $10 contribution would  *
  11.                     *  greatly appreciated.             *
  12.                     *                                   *
  13.                     *       Alan Buckwalter             *
  14.                     *       139-18 Pershing Crescent    *
  15.                     *       Briarwood, NY  11435        *
  16.                     *                                   *
  17.                     *************************************
  18.  
  19.  
  20.           DELDIR.COM Version 1.0 --------------- DELete a DIRectory
  21.  
  22.  
  23.  
  24.             >>>>  IMPORTANT - READ THIS BEFORE USING PROGRAM   <<<<<
  25.  
  26.  
  27.         This program simplifies the procedure of deleting sub-directories
  28.         under DOS2.x and up.  Normal procedure for deleting a sub-directory
  29.         consists of changing into the target directory, deleting all of
  30.         the files (and sub-directories) and then removing the directory 
  31.         itself.  If the target sub-directory itself contains sub-directories
  32.         this process could involve a great deal of navigations through
  33.         a tree structure of directories.
  34.  
  35.         DELDIR was written to simplify this procedure.  It will recursively
  36.         delete the contents of the target sub-directory and then delete the
  37.         sub-directory itself.  Though simply stated, this program can have
  38.         disastrous effects if not used properly.
  39.  
  40.         Consider the following disk arrangement (directories are in
  41.         upper case and files are in lower case):
  42.  
  43.  
  44.            \ ────┬──── TEST ────┬──── WORK ────┬──── xxx.dat
  45.                  │              │              └──── xxx.doc
  46.                  │              ├──── help.dat
  47.                  │              │
  48.                  │              └──── DOC ────────── read.me
  49.                  ├──── command.com
  50.                  ├──── ibmbio.com
  51.                  ├──── ibmdos.com
  52.                  └──── autoexec.bat
  53.  
  54.  
  55.  
  56.         To delete the directory: TEST would involve the following list
  57.         of commands:
  58.  
  59.                 cd \TEST\WORK
  60.                 del *.*         - answering yes to (Are you sure ??)
  61.                 cd ..
  62.                 rd WORK
  63.                 cd DOC
  64.                 del read.me
  65.                 cd ..
  66.                 rd DOC
  67.                 del help.dat
  68.                 cd ..
  69.                 rd TEST
  70.  
  71.         With the aid of DELDIR, this may be achieved by typing:
  72.  
  73.                         deldir \TEST
  74.  
  75.         Although this example involves an arrangement of sub-directories
  76.         that the average user usually does not encounter, it still
  77.         simplifies the procedure of deleting a sub-directory that contains
  78.         a great deal of files.
  79.  
  80.         Another "feature" of DELDIR is the fact that it will delete 
  81.         INVISIBLE, SYSTEM, and READ-ONLY files, and I use the term 
  82.         "feature" very loosely !!  Certain software packages (like 
  83.         Microsoft WORD) when installed, create sub-directories that 
  84.         contain hidden, read-only, and system files which make deleting 
  85.         the package difficult with normal DOS tools.  DELDIR will delete 
  86.         everything, and I mean everything !!! in the specified target 
  87.         directory, including files marked READ-ONLY !!!   
  88.  
  89.         I STRONGLY  RECOMMEND EXAMINING THE DIRECTORY BEING DELETED 
  90.         FIRST WITH ONE OF THE PUBLIC DOMAIN DIRECTORY UTILITIES, SO 
  91.         YOU ARE SURE OF THE FILES THAT ARE GOING TO BE DELETED !!!!!
  92.  
  93.  
  94.  
  95.         The following represents the legal syntax for using DELDIR:
  96.  
  97.         deldir  DOCUMENT   -    To delete the sub-directory DOCUMENT
  98.                                 that is off the current directory.
  99.  
  100.         deldir  \TOOLS     -    To delete the sub-directory TOOLS
  101.                                 that is off the root directory.
  102.  
  103.  
  104.         DELDIR will not allow you to supply a drive specifier for
  105.         the directory to be deleted.  Due to the nature of this 
  106.         program, the drive specifier has been left out to avoid
  107.         any additional confusion and possible destruction.
  108.  
  109.  
  110.  
  111.         The following are the errors generated by DELDIR and what
  112.         then mean:
  113.  
  114.  
  115.         Drive Specifier Not Allowed   - A drive was supplied in the sub-
  116.                                         directory path and is not allowed
  117.                                         with DELDIR.
  118.  
  119.         Root Directory May NOT Be Deleted     - The root directory was 
  120.                                                 specified to be deleted and
  121.                                                 this is not permitted with
  122.                                                 DELDIR for obvious reasons.
  123.  
  124.         Cannot locate Directory: XXXX - The specified directory could not
  125.                                         be found.
  126.  
  127.  
  128.  
  129.         I hope you find this program to be a useful utility.  
  130.         I welcome any comments or suggestions about the program.
  131.  
  132.                                 Alan Buckwalter
  133.  
  134.